﻿#include "CmdPolarCoordinateGraphRemoveSelectedTracer.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdPolarCoordinateGraphRemoveSelectedTracer::CmdPolarCoordinateGraphRemoveSelectedTracer()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdPolarCoordinateGraphRemoveSelectedTracer::~CmdPolarCoordinateGraphRemoveSelectedTracer()
    {
    }

    bool CmdPolarCoordinateGraphRemoveSelectedTracer::execute()
    {
        // bool _success = false;
        emit IBaseSignalInstance->signal_polarCoordinateGraphRemoveSelectedTracer(m_mainWindowId, m_infoidList, m_curveInfoID);
        return true;
    }

    void CmdPolarCoordinateGraphRemoveSelectedTracer::undo()
    {
    }

    void CmdPolarCoordinateGraphRemoveSelectedTracer::redo()
    {
        // execute();
    }

    void CmdPolarCoordinateGraphRemoveSelectedTracer::setPolarCoordinateGraphRemoveSelectedTracer(int mainWindowId, QList<int> infoidList, int curveInfoID)
    {
        m_mainWindowId = mainWindowId;
        m_infoidList = infoidList;
        m_curveInfoID = curveInfoID;
    }

} // namespace PostCommand
